.tree-node {
  position: relative;
  color: #9e9e9e;
  .tree-content {
    .tree-node-item {
      padding: 4px;
      margin-top: 3px;
      border-radius: 4px;
      position: relative;
      text-align: left;

      .tree-node-item_icon {
        margin-right: 4px;
        line-height: 1;
        width: 11px;
        height: 11px;
        text-align: center;
        position: relative;
        fill: currentColor;
        vertical-align: middle;
        cursor: pointer;
        transition: transform 0.3s;
        &.collapsed {
          transform: rotate3d(0, 0, 1, -90deg);
        }
        &.expanded {
          transform: none;
        }
      }
      .tree-node-item_children {
        padding-left: 18px;
        .tree-node-item::before,
        .tree-node-item::after {
          content: "";
          position: absolute;
        }
        .tree-node-item::before {
          top: -3px;
          bottom: 50%;
          width: 35px;
          left: -35px;
          border-left: 1px solid currentColor;
          border-bottom: 1px solid currentColor;
          width: 15px;
          left: -13px;
        }
        .tree-node-item::after {
          top: -3px;
          bottom: 0;
          width: 2px;
          right: auto;
          left: -13px;
          border-left: 1px solid currentColor;
        }
      }
      .key {
        user-select: none;
      }
      .label {
        padding: 5px;
        user-select: none;
        margin-right: 5px;
      }

      .btn {
        border-radius: 5px;
        padding: 4px 6px;
        background-color: #409eff;
        font-size: 12px;
        color: white;
        cursor: pointer;
        transition: 0.3s;
        &:hover {
          opacity: 0.7;
        }
      }
    }
  }
}

.inline-flex {
  display: inline-flex;
}
.both-center {
  justify-content: center;
  align-items: center;
}
